package org.jash

/**
 * Created by Jash
 */

fun main() {
//    var user = User(password = "123", gender = "男")
////    user.username = "user"
////    user.password = "123456"
//    println(user.username)
//    println(user.password)
//    user.age = 10
//    println(user.age)
//    user.age = -10
//    println(user.age)
//    println(user.gender)
//    println(user.login("user", "123456"))
//    var u1 = User()
//    u1.username = "user"
//    u1.password = "123456"
//    println(u1 == user)
//    println(sum(3, 4))
    val person = Person("张三", 20)
    val p1 = Person("张三", 20)
    println(person)
    println(p1 == person)
}
fun sum(x:Int, y:Int) = (x + y).toDouble()